package events;
import javafx.event.Event;
import javafx.event.EventTarget;
import javafx.event.EventType;


/**
 * Evento que contém a URL do XML e é disparada do componente para a aplicação principal
 */
public class LoadXmlEvent extends Event {
    
    public static final EventType<LoadXmlEvent> LOAD_XML = new EventType(ANY, "LOAD_XML");
    private String _path;
    
    public LoadXmlEvent() {
        this(LOAD_XML);
    }
    
    public LoadXmlEvent(EventType<? extends Event> arg0) {
        super(arg0);
    }
    
    public LoadXmlEvent(Object arg0, EventTarget arg1, EventType<? extends Event> arg2) {
        super(arg0, arg1, arg2);
    }  

    /**
     * @return the path
     */
    public String getPath() {
        return _path;
    }

    /**
     * @param path the path to set
     */
    public void setPath(String path) {
        this._path = path;
    }
    
}
